/**
 * The Community Project
 * Copyright Team1 Productions
 * 
 * Joshua Amick
 * Stephen Cunningham
 * Thema Davis
 * Tomika Dawson
 * Lucie DeCristofaro
 * 
 * All Rights Reserved.
 */

package com.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name="event")
public class Event extends BaseObject implements Serializable{

	private Timestamp startDate;
	private Timestamp endDate;
	private boolean reoccuringEvent;
	private String eventTitle;
	private String eventDescription;
	private String eventLocation;
	private String details;
	private boolean publicViewable;
	
	@Column(name="end_date")
	public Timestamp getEndDate() {
		return endDate;
	}
	public void setEndDate(Timestamp endDate) {
		this.endDate = endDate;
	}
	
	@Column(name="event_description", length=2048, nullable=true)
	public String getEventDescription() {
		return eventDescription;
	}
	public void setEventDescription(String eventDescription) {
		this.eventDescription = eventDescription;
	}
	
	@Column(name="event_location", length=128, nullable=true)
	public String getEventLocation() {
		return eventLocation;
	}
	public void setEventLocation(String eventLocation) {
		this.eventLocation = eventLocation;
	}
	
	@Column(name="event_title", length=128, nullable=true)
	public String getEventTitle() {
		return eventTitle;
	}
	public void setEventTitle(String eventTitle) {
		this.eventTitle = eventTitle;
	}
	
	@Column(name="public_viewable")
	public boolean isPublicViewable() {
		return publicViewable;
	}
	public void setPublicViewable(boolean publicViewable) {
		this.publicViewable = publicViewable;
	}
	
	@Column(name="reoccuring_event")
	public boolean isReoccuringEvent() {
		return reoccuringEvent;
	}
	public void setReoccuringEvent(boolean reoccuringEvent) {
		this.reoccuringEvent = reoccuringEvent;
	}
	
	@Column(name="details", length=2048, nullable=true)
	public String getDetails() {
		return details;
	}
	public void setDetails(String details) {
		this.details = details;
	}
	
	@Column(name="start_date")
	public Timestamp getStartDate() {
		return startDate;
	}
	public void setStartDate(Timestamp startDate) {
		this.startDate = startDate;
	}
	
	
}
